home *** CD-ROM | disk | FTP | other *** search
/ Champak 52 / Volume 52 - JOGO DISK .iso / Games / sandwichcooking.swf / scripts / DefineButton2_465 / BUTTONCONDACTION on(release).as < prev    next >
Text File  |  2007-09-27  |  643b  |  31 lines

  1. on(release){
  2.    this.stopDrag();
  3.    this.gotoAndStop(1);
  4.    if(this.hitTest(_root.chop.edrop))
  5.    {
  6.       _root.txtC._visible = true;
  7.       _root.txtC.play();
  8.       this._x = targetX;
  9.       this._y = targetY;
  10.    }
  11.    if(_root.chr._currentframe == 1)
  12.    {
  13.       _root.txtX._visible = true;
  14.       _root.txtX.play();
  15.       _root.chr.gotoAndPlay(11);
  16.       this._x = targetX;
  17.       this._y = targetY;
  18.    }
  19.    else if(this.hitTest(_root.chr.idrop))
  20.    {
  21.       _root.chr.jelly._visible = true;
  22.       this._x = targetX;
  23.       this._y = targetY;
  24.    }
  25.    else
  26.    {
  27.       this._x = targetX;
  28.       this._y = targetY;
  29.    }
  30. }
  31.